﻿using Bilibili.Model.Bangumi;
using Bilibili.Model.Comment;
using ReactiveUI;
using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace Avalonia.BiliBili.Controls.ViewModels
{
    public class CommentViewModel : ViewModelBase
    {
        private string typeText = "热门评论";
        public string TypeText
        {
            get => typeText;
            set => this.RaiseAndSetIfChanged(ref typeText, value);
        }
        private string typeSwitch = "按最新排序";
        public string TypeSwitch
        {
            get => typeSwitch;
            set => this.RaiseAndSetIfChanged(ref typeSwitch, value);
        }
        private ObservableCollection<Episodes> episodes = [];
        public ObservableCollection<Episodes> Episodes
        {
            get => episodes;
            set => this.RaiseAndSetIfChanged(ref episodes, value);
        }
        private List<Comment> replies = new List<Comment>();
        public List<Comment> Replies
        {
            get => replies;
            set => this.RaiseAndSetIfChanged(ref replies, value);
        }
        private ObservableCollection<Comment> comments = [];
        public ObservableCollection<Comment> Comments
        {
            get => comments;
            set => this.RaiseAndSetIfChanged(ref comments, value);
        }
    }
}